package cn.wanho.feign;

import cn.wanho.rvo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "wanhoexam")
public interface FeignService {
    @GetMapping("/exam/testCheck")
    public String feign1(@RequestParam(value = "userId")Integer userId);

    @GetMapping("/exam/testing")
    public String feign2(@RequestParam(value = "paperId") Integer paperId,@RequestParam(value = "id") Integer id);

    @PostMapping("/exam/saveAnswer")
    public String feign3(@RequestParam(value = "questionId") String questionId, @RequestParam(value = "answerContent") String answerContent, @RequestParam(value = "paperId") String paperId,@RequestParam(value = "id")Integer id);

    @PostMapping("/exam/commit")
    public String fegin4(@RequestParam(value = "userId")Integer userId,@RequestParam(value = "paperId")String paperId);

    @GetMapping("/exam/showpaper")
    public String fegin5(@RequestParam(value = "paperId") Integer paperId,@RequestParam(value = "sort")Integer sort,@RequestParam(value = "studentId")Integer studentId);

}
